package cn.jolyoulu.wechatpub.constants;

import cn.jolyoulu.common.redis.constant.IRedisKey;

/**
 * @Author: JolyouLu
 * @Date: 2025/9/8 16:59
 * @Version 1.0
 */
public enum WechatpubRedisConstant implements IRedisKey {

    /**
     * 微信令牌 ACCESS_TOKEN
     * 用户id
     */
    VX_ACCESS_TOKEN("VX:ACCESS:TOKEN"),

    /**
     * 微信用户消息
     * msgId
     */
    VX_USER_MSG("VX:USER:MSG:%s"),
    ;

    private String key;

    WechatpubRedisConstant(String key) {
        this.key = key;
    }

    @Override
    public String keyFormat(String... args) {
        return "WECHAT:PUB:" + String.format(this.key,args);
    }
}
